﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Gufa.IServices
{
    public interface IBaseService<T> where T : class, new()
    {
        IQueryable<T> LoadEntities(Expression<Func<T, bool>> whereLambda);
        Task<bool> AddEntity(T entity);
        Task<bool> DeleteEntity(T entity);
        Task<bool> UpdateEntity(T entity);
    }
}
